package com.ruoyi.web.controller.school;

import com.ruoyi.system.domain.SchoolUser1;
import com.ruoyi.system.service.impl.SchoolServiceImpl1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sclool1")
public class SchoolController1 {
    @Autowired
    private SchoolServiceImpl1 schoolServiceImpl1;

    //添加
    @PostMapping("/add")
    public String add(@RequestBody SchoolUser1 schoolUser1){
        String add = schoolServiceImpl1.add(schoolUser1);
        return add;
    }

}
